package com.xuecheng.comment;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;


@RefreshScope
@EnableSwagger2Doc
@EnableScheduling
@EnableFeignClients(basePackages = {"com.xuecheng.comment.agent"})
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"com.xuecheng.common.exception", "com.xuecheng.comment"})
@MapperScan("com.xuecheng.comment.mapper")
public class CommentApplication {

	public static void main(String[] args) {
		SpringApplication.run(CommentApplication.class, args);
	}
}